﻿#region

using System.Xml;
using System.Xml.Serialization;

#endregion

namespace DotNetMax.CodeGen.Model.Entity
{
    /// <summary>
    /// Entidade Base Extendida com Propriedades Extra
    /// </summary>
    public class ExtendedBaseEntity : BaseEntity
    {
        #region Constructor

        public ExtendedBaseEntity()
        {
        }

        public ExtendedBaseEntity(string filePath, string name) : base(filePath, name)
        {
        }

        public ExtendedBaseEntity(XmlDocument medataData)
        {
            _MedataData = medataData;
        }

        public ExtendedBaseEntity(string filePath, string name, XmlDocument medataData) : base(filePath, name)
        {
            _MedataData = medataData;
        }

        public ExtendedBaseEntity(string filePath, string name, string guid, XmlDocument medataData)
            : base(filePath, name, guid)
        {
            _MedataData = medataData;
        }

        public ExtendedBaseEntity(string filePath, string name, string guid) : base(filePath, name, guid)
        {
        }

        #endregion

        #region Fields

        private XmlDocument _MedataData;

        #endregion

        #region Properties

        /// <summary>
        /// Contém os Metadados da Entidade
        /// </summary>
        [XmlElement("MetaData")]
        public XmlDocument MedataData
        {
            get { return _MedataData; }
            set { _MedataData = value; }
        }

        #endregion
    }
}